Fix null ptr for Application::GetInstance().