Corrected user query callback.

When no results are returned from the query, this does not indicate an error, so instead we check for null on the response.