Bugfix: when no search is performed for resident search by text, return empty array instead of nothing.