Fixes error when search through records and label fields aren't indexed.