IllegalStateException in TabPageIndicator.java

when viewpage has NOT attached(by setViewPager()) yet, 
there is a erroneous calling to setCurrentItem() which 
will throw a IllegalStateException.