helper: Check for missing canonical head
Without the canonical head in the working copy, the next check will fail with a cryptic error.
Without the canonical head in the working copy, the next check will fail with a cryptic error.
Fixup.
Rebase.