fix bug null/undefined bug
Merge pull request #263 from NickQiZhu/fix-node-8

fix bug null/undefined bug