Bug 857598: Ensure waiting for session restore event before running the addon.

https://bugzilla.mozilla.org/show_bug.cgi?id=857598