The documentation for HSLFPictureData#getIndex() indicates that the index is 1-based. In most cases it is. However, when loading a PPT that already has images in it, the indices start at 0.
https://github.com/apache/poi/pull/211
Applied via r1884948 in a slightly different way to use the same approach across two similar code-places.