Prevent /switch/ from crashing if not logged in
Merge pull request #628 from scraperwiki/switch-safety

Prevent /switch/ from crashing if not logged in