PathItem.closed = true on a path with no points had no subpath to store the value in, so the assignment reported success while closed still read false. It now throws "Cannot close a path that has no points".