Fix bug that occured when deleting a task while a curated list view is open