fix OPM ES query

http://manage.dimagi.com/default.asp?132180