Don't crash if username or password are undefined.