fixes #4442 - returning nil plays nice with try_to_login.