codegen: work around firmware bug, only accept the first found tlv