fix case ES preindex

http://manage.dimagi.com/default.asp?147543

depends on https://github.com/dimagi/pillowtop/pull/96
(but yes, we should figure out something more reasonable and migrate other pillows at some point in the not-too-distant future)