Fixed another small bug that reports an error even when the query
returns zero results (and there was no error).