Fix pulling images that contain no layers at all Upstream-commit: 2b1b235acf9aa029218e1bd5cd97a369c500e4f5 Component: engine