Fix polyline flicker caused by dividing by a number close to zero.