fixed linkmap crashing when building the map when names list is empty

fixed linkmap crashing when building the map when names list is empty