Make git_index_read() cope with external additions and removals of the index file

Should help fixing libgit2/libgit2sharp#519 and libgit2/libgit2sharp#322.