[BUG #8678] Fixed setting the currentIndex property from outside of the carousel class