bug fix for Clone Graph, fix condition when node is null