browse/snapshot_context: Do not lookup null revision in directory view
Fix a regression inroduced in 09e18940: when a revision id is null (for instance when browsing an empty snapshot), do not attempt to lookup revision data to avoid an error 500.
Migrated from D3059 (view on Phabricator)