Fix for horizontal line segments not rendering due to divide by zero in vertex code AGAL