Fix IE test failure by avoiding unnecessary changes to window.location.hash.