Clone node array before sending into D3 force layout.
Cope with deselecting when nothing selected.