Hi

what I think is happening is this:

even when the pencil tool is set to no fill color, illustrator keeps track of fill space

if you convolute the line so that it is not possible for it to have just one fill space, then illustrator removes the previous line/fill space and procedes with the most recent one - hence the previous line 'disappearing'