Here and in same places
if (ApplicationEventRouter* app_router = GetAppRouter(app_id))