Add shortcut for undoItem.state
Use more safe way to get URL of closed tab