Correction of two problems in the task view

- When we delete the last subtask, the selection move to parent task but delete action is not enabled
- When we add subtask, the selection stay in parent task and the delete action is still enabled