fix(search): catch search errors in generic_search (closes #4869)