Fixed the Function.prototype.apply() error on IE8

IE8 triggers an error if the second parameter of Function.prototype.apply is undefined.