User can't logout

Observed Behavior:
Logout doesn’t work when standard user has no access to spaces.

Expected Behavior:
User should be able to logout.

Phabricator Version:
67f062b0049dcc55558acfa85c6333947d6fcaab (Thu, May 30)

Reproduction Steps:

  1. create at least two spaces with Visible To: Administrators
  2. create standard user
  3. login as the user
  4. click on “drift aimlessly” few times.
  5. click logout
  6. user is still logged in.