Properly handle parent task deletion, preventing crashing on modifying orphaned child task
This MR fixes a critical bug that would cause Kalendar to crash when completing an orphaned sub-task. Orphaned sub-tasks are now properly handled upon deleting the parent, solving the cause of the crash