Seems like it's trying to load the buffered images from the raw sprite data but there isn't any so it's throwing an out of bounds exception.
You can just add a length check before returning the data for now, though the problem might persist elsewhere.