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

Fixes #586