Handle bad search criteria

http://pm.tablexi.com/issues/71483
Merge pull request #120 from tablexi/handle_bad_search_71483

Handle bad search criteria