Added missing checks for out-of-range when using gui::combo::selected().