Improved the shameful hack fixing an error thrown while creating bookmarks in IE10.