Fixes bad predicate error when using taxon options in advanced query builder.