[DROOLS-73] avoid infinite loop during DSL expansion