LPS-32767 fix issue with iterator in search (do not show pagination details when there are no results)