Prevent server-side error when search field (q param) is empty.