Fixed empty email handling when registering from SSO.