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.

Ideally the source could be streamed to a log file
so that it never has to be rendered in-memory in
its entirety, but this is a good start.