check for none when dumping graph from json.
check for none when dumping graph from json.

MathGen/oppgavegenerator,w0pke/oppgavegenerator,w0pke/oppgavegenerator,MathGen/oppgavegenerator,w0pke/oppgavegenerator,MathGen/oppgavegenerator