[DROOLS-327] check no-loop on terminal node instead of rule