Fix duplicate messages under high rate when ElasticSearch is down