Make getViewIndex account for possibly disabled progress bar