Fix error when creating HL7 with a nil value