Fix for window unload issue

https://github.com/voldsoftware/restartless-restart-ffext/pull/57
Fix Firefox 21 compatibility