Fix clip case to treat first vertex as a special case based on
whether the line is closed or not.