Fixed issues with basic auth and NoneType errors
Fix for basicauth and no user/pass set