Use window onerror exception object if provided