Correct handling of predicates in BoWText iterator