There was an issue regarding performing onFinished registrations during
branch rejection. Now, pending onFinished registrations are executed
right before backwarding is performed - and any onFinished registrations
made during rejection is performed right after backwarding.

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