fix issue where _done.apply(self, hookArgs) throws error in IE 8