fixing 500 error when not logged in
Merge pull request #1409 from gittip/issue-1406

fixing 500 error when not logged in