[Fix] Fixed showing empty back/forward history menus.
[Fix] Fixed duplicating current url in history when restoring session.