Fix git-fetch while on detached HEAD not to give needlessly alarming errors