Robustify TLV value parsing