Controls bug fix

Fixed bug reported in #128 where next page arrow control appears when there is only one page if `infiniteLoop` is `false` and `hideControlOnEnd` is `true`.