[DROOLS-594] fix path mask initialization when a segment as an accumulate as last node
(cherry picked from commit e1c0efabeea4b768fc683466ad65ce48c4be6246)