Fix cancellation corner case

Manage cancellation properly when the INVITE has been answered but the answer has not been yet sent.