[Regression] Fixed restoring current tab.

Regression from 38c4d347c9910288e059fddf49791de8e1278f55