Encode undefined value as null
Merge pull request #71 from DanielSmedegaardBuus/master

Encode undefined value as null