fixed incorrect sanitization of consecutive LNs.

this bug first introduced by hg rev 140bdec5b7fb (git rev cb72f2f3d2aa),
during simplification of sanitization.

--HG--
branch : 2.0