fix Elasticsearch.index with id=0

Fixes #164 Thanks larsmans!