title: Argument "Index" is not a valid value
body: <p>I am developing a tool to commit dcm files and now I have a bug that refuse to commit removed files when they had been used as a source file for other added files. </p>
  
  <p>Procedure :</p>
  
  <p>1- Copy file called FILE_A and name it as FILE_B and implement some changes to the parameters in FILE_B then commit changes using the tool( with choosing FILE_A as a reference file ) .. works totally fine. </p>
  
  <p>2- Delete FILE_A and keep FILE_B and then use the tool to commit  .. tool will crash and be closed.</p>
  
  <p>And here is the lines that throw the exception and close the tool :</p>
  
  <pre><code>If FilesGrid.Item(0, a).Value = True And FilesGrid.Item(2, a).Value.ToString() = "Removed" Then
  
      FilesRemoved.Add(FileLocalPos.Item(FilesGrid.Item(1, a).Value.ToString))
      myFileVector.Add(FileLocalPos.Item(FilesGrid.Item(1, a).Value.ToString))
  
  End If
  </code></pre>
  
  <p>The exception message is :</p>
  
  <p><code>Argument "index" is not a valid value</code> </p>
  
  <p>Your help is highly appreciated ..</p>