tm: fix possible uninit. use of cancel_reason