Update scrapyelasticsearch.py

edit the local id so it references the string directly. Referring to the array item just breaks as it does not exist.