Bug 965697 - Fix intermittent browser_sessionHistory.js failures by waiting until the history entry has been replaced. r=smacleod

--HG--
extra : rebase_source : 2c134be33a3ba6e4916d8645eb662141eb1ecbfa