Fix for null History object (causing JS errors in IE)