fix search: do not search if no params