Fixed some bugs in scrapyelasticsearch.py