Use visibleTabs instead of mTabs.

Because mTabs can include closing tabs.