Fix erroneous assert in Curve_extraction.