fixed NPE when authInfo!=null but proxyInfo==null

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>