fixed bug where search endpoints erred without a query