Update the submasks on the edges of the segment

At this point the 'padding' submask already exists. If it's not updated,
the combined mask in the validatoin will not include the mask on the
edges of the segment!