[fixes #44878753] Prevent empty arrays returning all assets

Fixes a critical bug with the search interface