Remove dead code looking for non-existent err msg Upstream-commit: 7101419c1c44083cf8ba30b4469d4cde4ab05e55 Component: engine