Fix return value of window.open().