rebase: Fix the detection of fast-forwarding of the current branch to upstream.