Fixed error when sending empty search request