Solves issue #880 when clicking on the next slide button, when the current slide is the last one and animationLoop is disabled.