Fix History based location on Safari 5 & IE<10

Removed dependencies on the browser's history.state since it's not
supported in IE<10 and Safari<6 (Issue #2365)