Fix switching to all available modes when some are missing

Problem was that we use the enum dt_ctl_gui_mode_t as an offset for the
modules list :/