Stringify null and undefined correctly