Fix crash when deploying host from raw base images