api/snapshot: Handle aliases chain when resolving real branch target
Hypothesis can generate chain of aliases in a snapshot content. We could also encounter such cases in real world data so we need to handle it.
Test Plan
This issue was discovered by an already written test when using the slow hypothesis profile mode.
Depends on !920 (closed)
Migrated from D2384 (view on Phabricator)