Hotfixes/es 1.2.1

Hello.

I have fixed a little bit code to support es-1.2.1 which I use now in my company.
Also, when I download data as a Excel(.xls), there might be a bug(I am not sure this is a bug or not)
Anyway, When I download a xls, the numbers of columns in a row are different depending on the search result from the es. So, I make a row have a fixed number of columns in order that cells, which have the same elasticsearch column name are in the same column in a xls as well.

Thank you~