web: support repos without default branch
Created by: tjkandala
Fix #9651.
We previously assumed that a repository must have a default branch. However, Phabricator staging areas do not require a default branch, which breaks "Go to definition" and "Find references" functionality for the Phabricator native integration/browser extension.
Fix: Don't throw RevisionNotFoundError
when no default branch is found, rather only when no Git tree is found. Fallback to 'HEAD'
when default branch isn't found. I believe this isn't risky since we already do this throughout the web app