Attempt to access `points_by_curve.data().last()` on an empty array crashed on a null pointer dereference. Ref !135956