FIxed a bug when rendering with a Writer a graph with a generator as leaf of the tree