Handle the case when there is no JSON in query result.