added check for the event path  to decrease the amount of Session.getNodes()

This is a simple patch which improves perf slightly, since the large amount of JCR events generated will not cause calls to Session.getNode()