Registering of continuation should only be possible for unclosed
branches.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>