Handle explicitly the errors which might arise while querying the index of
the query view.