[DROOLS-7] avoid infinite loop when sorting right tuples for existential nodes in phreak