call old onerror when it's already defined

Previously, errbit overrode window.onerror even when it's already defined.
In most cases, the old window.onerror event should be called, so I added a fix for it.