fix bug where empty filters didn't get removed
Merge pull request #1810 from dimagi/elasfix

fix bug where empty filters didn't get removed