browse/snapshot_context: Ensure pull request branches can be browsed
While pull request branches are hidden by default in Web UI, they should remain browsable.
That commit fixes the error that was previously raised when attempting to browse such a branch.
Migrated from D6207 (view on Phabricator)