BUGFIX: Don't destroy the old search if the current regexp is bad. Also provide a meaningful error message.