Bug fix for fringe case (crossover occurs directly before last vertex in linestring)