don't call .host() on non-URI object (LOGSTASH-821)