Fixed undefined optional strings serialized to "undefined"