Fix a bug that can occur when query doesn't exist in the JOSN response.