Simplify way to remove closed private tabs from undo close history
Also getTabState() may be undefined on window "unload"
(enhancement for #6, related to #36)