fix out of bounds exception for files that have been deleted
Merge pull request #13 from breunigs/fix-index-oob

fix out of bounds exception for files that have been deleted