@SNICKRS - were you able to resolve this problem?
I haven’t examined this code closely, but multiple things about the PShape design are not meant to be edited. If you need to edit a PShape, the most reliable procedure is to create a new PShape and copy the contents over, skipping the things you want to delete and adding any extras. There are a number of other approaches as well:
Past related discussions: