Fixed TISTUD-5924: NPE when opening TiApp during startup.