Fixed NPE in Carousel

Call setSelectedPage in Carousel caused NPE if Carousel was not yet attached.
Merge pull request #194 from dankurka/fix_carousel_setpage_bug

Fixed NPE in Carousel