set total results to 0 when it's not present so the query ends