[DROOLS-594] fix path mask initialization when a segment as an accumulate as last node