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, and nothing would happen when
clicking a newly created graph.
Merge pull request #88 from jonnor/fix-cant-open-newgraph

Fix unable to open newly created graphs