Fixed the ElasticSearchPersistWriter

If this is no longer used it should be removed.