viewer: check for params[:q] existence.