Compensate for increasing trace length. In particular, we don't want to try to compare an unset byte at the end, since gen_trace noew generates one fewer bytes than the number trace_len returns.