browse/snapshot_context: Do not lookup null revision in directory view
Fix a regression inroduced in 09e18940394e: 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.