sanity check for tab menu before restoreSavedTab

fixes #1039