Fix handling of nodes with no assigned name.