browse/snapshot_context: Handle snapshot containing only releases
This fixes observed errors when trying to browse a snapshot containing only releases.
Releases targeting directories are also now properly handled.
Related to #3724 (closed)
Migrated from D6641 (view on Phabricator)