Fix issue where re-loading history.js adapter breaks scripts when minified and concatonated by throwing an error