Removed redundant code from tree.Selector.match()

This is just an updated version of #1746.
Removes redundant Math.min call from tree.Selector.match() code.