Fix crash in SimpleLoginManager.