Fix unable to open newly created graphs

Without this change the 'data-id' attribute of the list entry is empty,
as graph.properties.id is not set. It could be this should be
fixed in GenerateId instead?