Pass window.onerror args to old onerror

The current code passes the arguments of an internal function rather
than the original arguments passed into window.onerror. This breaks the
functionality of the old window.onerror callback.