Fix crash

In some cases, pagebarSlider.maximumValue and pagebarSlider.minimumValue can be equal so sliderRatio become NaN and application crashes.