Added check to indexConvert for decreasing byte offset entries

indexConvert will now bail out if it sees an index entry that's
 smaller than the preceding entry.