Bug 1067648 - Introduce restoreTab() and use it from restoreTabs()