Added a conditional, so if a literal null is encoded in json, it won't NPE.

I'm actually not sure about this one, because it apparently depends on the file encoding, even though the contents of the file otherwise don't change.