Fixes problem where predicates are not honored at the end of paths
Merge pull request #776 from systay/traversalmatcher-predicates

Fixes problem where predicates are not honored at the end of paths