checkout: relocate --to's "no branch specified" check