remote: assert what we want to happen when ther is no default branch

Assert what we already do, so as to notice changes.
remote: short-circuit the default branch check if there is none

If we do not have a HEAD ref in the heads, we already know there is no
default branch. Return immedately.