fix an undefined pointer on UOM set on binary values
this showed up while writing datalogger headers