browse/snapshot_context: Fix empty snapshot browsing for staff users
The generation of raw extrinsic metdata links only available for staff users
at the moment was not covered by tests and some bugs slip through.
That commit fixes those errors and improve related tests implementation.