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

Use more comprehensible message for end-user.