[WebKit] Fix crash when throwing exception from window context.