This assertion fails if the user cancels the login dialog before logging in.