Removes redundant empty search index checking.