Fixed issue deleting a task card or its parent