Fix address_or_hostname to not fail.

ip.hostname may be nil.