Don't serialize nil to an empty string
Merge pull request #240 from ahmadsherif/master

Don't serialize nil to an empty string