views: check for an empty query