Fix issue with Can't call method GetFileName on unblessed reference when adding cached config to the internal global cache