[Bugfix] gulp (errorhandler.js)

Function.prototype.apply() requires arguments typeof Array. Convert
before passing to apply().

Thanks Dan Tello <greypants>!