Item13027: Partial fix for the "Unexpected error"

I know that this really isn't right.  Search ought to catch and report
this within the %SEARCH macro, and not result in a crash.

This commit just reports the error to the UI, and also reports more
information for future "Unexpected" errors