tm: don't clean local vars when trying to append a new branch to an active canceled transaction

- they are not set, reported by Ovidiu Sas, FS#498