Ends of the polyline are flickering, When globe is in 2D and rotatable

Hello,

When viewer sets to 2D and mapMode2D:ROTATE, draw a polyline and pan, ends of the line are flickering.

chrome-capture (1)

Sandcastle example

Anybody knows solution ?