[DROOLS-664] minor performance optimization to xpath evaluation