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

Use more comprehensible message for end-user.