Before making a query for user info, make sure user exists.
Fixes #586
Merge pull request #591 from angaither/make-sure-auth

Before making a query for user info, make sure user exists.