fix Elasticsearch.index with id=0

Previously, `id=0` triggered a POST rather than a PUT to id 0 because 0 is false in Python.