Fix empty query string for views.