Fix for hostgroup searching

The hostgroup query needs to come before the filter query or the Lucene syntax ends
up resulting in a search error.