This fixes observed errors when trying to browse a snapshot containing
only releases.
Releases targeting directories are also now properly handled.
Still a WIP, some tests must still be added to cover all cases, let
code coverage be reported on Phabricator Web UI first.
Related to T3724