[DROOLS-627] fix segment mask calculation when using accumulate subnetworks