Fix crash when no proxy is configured.