Fix transferring empty graphs back to igraph