FIX: Actually remove empty majors

I'm scared by modifying the keys of an object I iterate over.