When using Path:simplify, the resulting path may be incorrect and cannot be exported. Here's a minimal reproducible example:
p = Path("m 0 0 b 562 46 739 39 828 36 878 40 977 48 1026.6 52 1088 0 1212 0 0 0")
p:simplify()
p:export()
This raises the error: attempt to index a nil value