Fixes issue using getSlideIndex w/ allowWrap:false