Small fix to elasticsearch save error handling