Fix crash when not logged in due to operator precedence.