Wrap event log upsert SQL in try/catch (see 10181)

Attempts to ameliorate http://trac.openmicroscopy.org.uk/ome/ticket/10181 -- so look for regressions in event log handling. The code changes affect the pixel data handler and the full text indexer.

Unfortunately, we don't know how to actually cause the bug in the first place.