Fixes check for proxy_host so no notice is thrown