[SD-1240] Only empty stages can be deleted

Can be added a task that is not assigned to the new created stage.