fixes #2531

Here the issue occurs if the first predicate of AndPredicate is IndexAware and not indexed.
The thing I'm testing is that we shouldn't call predicate.apply more than once for this particular issue.