Temporarily fix couch issue
Merge pull request #4167 from dimagi/couch-query-issue

Temporarily fix couch issue