fix for NullPointerError in OnMeasure

ViewPagers that are being dynamically resized during initialization must handle calls to onMeasure before they're actually created.