Fix for TRQ-2436: Segfault in add_node_names.