Fixed NPE in Carousel

Call setSelectedPage in Carousel caused NPE if Carousel was not yet attached.