Don't write bad search requests into exception messages

See issue 8370.

If a search requests's source doesn't parse, log the
source instead of putting it into an exception
message and propagating it. This prevents large
strings from being built up.