revisions[0].ParentGuids was accessed without ensuring that revision.Count > 0

(cherry picked from commit d8c44e1cc7acb25f03a8c95272c17702a17a95cb)