Undefined username and password are set to empty string ''

On a server that has no auth capabilities, we need to fail, not attempt to log in when username and password are not defined.

Undefined username and password are both set to empty string '' on lines 46,47 so the final conditional block is never reached on line 1450.