Crash deleting main sample of a sliced instrument from a script

Had a hard crash with a tool I’m building using Claude and have made it condense the crash into a tool which can reproduce it here (windows 11 in the latest renoise);

com.plugexpert.SliceDeleteRepro.xrnx (2.4 KB)

Find the tool in the tools tab called “slicedeleterepro”, opening it should show a small gui with numbered steps.
Go to the sample editor and click the steps one by one. This should crash renoise.

The bug is squashed in my tool, but should prolly be smashed out of the api as well, if not already fixed?