This is an issue most possibly encountered only on staging. But technically,
the error could happen in production as snapshot_get_all_branches could return
None as well (which is currently ignored). If that happens though, `Snapshot.from_dict`
raises.
Most proeminent in staging, because we can mount partial dump from production.
Thus not everything exists. Typically, recently the error is raised because of
dangling snapshots from origin visits.
So thix fix ensures we can use staging nonetheless.
Related to T2428
https://sentry.softwareheritage.org/share/issue/4eb69ea2cc314c4ab811809ff60c358f/