Delete that line completely.
for _, table in pairs(data.raw["utility-constants"]["default"].zoom_to_world_daytime_color_lookup) do
table[2] = convertPath(table[2])
end
In this line it used the constant zoom_to_world_daytime_color_lookup. They deleted it.
It used to resolve the moment when you zoom in the map and at some point it changes from map view to real world view. Apparently that was merged and doesn't need a separate constant anymore. So just delete it, everything else works like a charm.