Cure null pointer access within Scope::findFunction introduced by recent cs