Fix asserts in trace-link.cc