Fix exception in UrlAddress.hostname for local URLs