Fixed memory leak related to History.onUnload

See:
https://github.com/browserstate/history.js/issues/376#issuecomment-62260740