Tighten up error handlings

- Some exceptions like PartialShardFailureException don't return
  useful error messages. The nested ElasticsearchException that
  ResponseException carries around seems to be more reliable.
- Also look for automaton import before declaring it a regex
  failure. Other weird things (like broken config for the
  experimental highlighter) can cause InvalidArgumentExceptions
  as well.

Bug: 67095
Change-Id: Icc964bf6e84e5a4ad1edf89863d489021dcc9ac8
Merge "Tighten up error handlings"