Removed redundant code from tree.Selector.match()