Handle a zero result set for a query in the JSONResponseHandler

Turns out that when a query has no results the response document does
not have a key named after the object that contains an empty array. It
simply does not have the key.