Don't crash on login when there are no organizations

Fixes #50.