[SD-1240] Only empty stages can be deleted