Fixed a bug that could cause tabs to not restore properly on app-launch.