[SD-1240] Only empty stages can be deleted

I think the idea is to test the query filter - so there could be some content but not assigned to that stage so it should still delete