Fix cases where `url.host` is undefined

Not only the `url.port` but also the `url.host` is `undefined` when using zombie.
This should ensure that we always have a working `host`.