BUG: Fix crash when pressing clear button on latest Slicer versions

https://github.com/SlicerIGT/PathPlanner/compare/9f33127730…f0ffd65527