fix case ES preindex

http://manage.dimagi.com/default.asp?147543

depends on https://github.com/dimagi/pillowtop/pull/96