Handle libgit exception when calling GitRev::GetParentFromHash()