When termsFilter is empty, use missingFilter instead

As discussed in the mailing list: https://groups.google.com/d/topic/elasticsearch/4Foz1VD0vt8/discussion

Here is a pull request that perform a `missing` filter when terms array is empty.