Fix zariz_get_snapshot_from_branch().