Add error checking for hostPort range Upstream-commit: 78db6379a85de68ba1b5fb39421a8fa8b56cd28b Component: engine