doctor: skip git origin check without brew repo

Likely fixes #18324.