Fixed the ElasticSearchPersistWriter
changes from comments.
good catch Matt F.
Merge PR#45 from Smashew 'smashew/Streams-ES-Writer-Fix'