only include active users in ES query

http://manage.dimagi.com/default.asp?115294

@esoergel