Supresses error when Tab selectedIndex is out of range