Fix rendering the active tab when tab_name can contain a mix of string and integers.

Fixes erroneously displaying tab 0 as active when the true active tab is a string.
BFN