Fix bug when filter taxonomy has no terms.