Fix building image error if bridge network is disabled Upstream-commit: 38217d43531c721da952a9de2a89b08397f7c029 Component: engine