model: Allow unresolved branches when computing Snapshot hash
This is needed by swh-scrubber when recomputing the hash of such snapshots.