Clean filter array before triggering query

Solves issue with blank filters in array triggering wrong query loop