From commit 5b1934312b87f8458de84d96421106774dbd95a8 Bug 24786: Allow setting a register for the session - [% IF ( update.updated_branch ) %] + [% IF ( update.updated_branch || update.updated_desk || update.updated_register ) %] + [% IF ( updated.updated.branch ) %] This change is wrong. It must be update.updated_branch.
Provide a patch for stables only. Master will get a fix on bug 34478.
We should never hit this code. I cleaned much of this up in Bug 36572. I think we can close this one?