fixes #4442 - returning nil plays nice with try_to_login.
(cherry picked from commit a416bb573dedf6c34592afec17fbbec96691a5e6)
fixes #4442 - returning nil plays nice with try_to_login.
(cherry picked from commit a416bb573dedf6c34592afec17fbbec96691a5e6)