Make sure we never use an undefined host.