fix offset curve crash (fixes #9446)