Fix SIGSEGV if app was not initialized in wxQT