Index entries could be NULL.
Merge pull request #326 from libgit2/null-index-entries

Index entries could be NULL.