Hiding Empty Enrollment Modes

@rocha @dsjen
Ah I see below that you are modifying the collection you are iterating on. In that case `invalid_modes.copy()` is more self explanatory.