Changed foreach walk of %cpuser_settings to 'while each' in GetEnabledDoms()