Correct lineno check for window.onerror