Fix issue with empty or 0 optional properties (an optional property can have the value 0 and must be sent)