Fix to ensure stable index values for tab buttons and content.
Fix to ensure stable index values for tab buttons and content.

ruleless/CEGUI,ruleless/CEGUI,OpenTechEngine/CEGUI,OpenTechEngine/CEGUI,OpenTechEngine/CEGUI,ruleless/CEGUI,ruleless/CEGUI,OpenTechEngine/CEGUI