Fix remote lookup when pushing into registry Upstream-commit: 5dcd11be16f732f68199b9ee96ce76190b64a9aa Component: engine