Fix window.onerror stack inproper usage