Fix profiling error in LocalisationCache::readJSONFile()