fixing reportxform case query for es compatability
Merge pull request #1615 from dimagi/es_compat_query

fixing reportxform case query for es compatability