Bug 1017047 - Properly restore private/desktopMode state of tab when undo-ing close tab. r=bnicholson