This IF makes impossible to set HTTPS proxy if HTTP proxy is not set. Is this intentional?