Fix issue #321. Prevent History.onUnload being called unnecessarily

- Prevent aggressive polling when not needed, primarily Internet Explorer 8 and below.