Fixed "segfault on close" bug related to addJavaScriptWindowObject for the Welcome window.