Bugfix in ElasticsearchOutput. Race condition caused occasional message loss.