encoding: Fix bug in TlvStructureDecoder for READ_LENGTH_BYTES when using the headerBuffer.