This tests that we don't crash when setting the selectedIndex out of bounds