Original behavior was return a non-empty string or empty value in case of failure. I tried to ensure that non-empty string will be valid hostname.