Added check for proxy host as a String