fix case ES preindex

http://manage.dimagi.com/default.asp?147543

depends on https://github.com/dimagi/pillowtop/pull/96
Cool, sounds good!