fixed npe with dynamically sized viewpager fragments that may call onMeasure before the viewpager is created