tracing: Fix potential null-pointer-access of entry in list 'tr->err_log'