Fix a possible null ref in the LocalDataService.