Fix crashes when tab on tab during scrolling tabview

@timothyrobb @charlespeach @jamesmccann  Bugfix stolen from [here](https://github.com/iltercengiz/ICViewPager/pull/70)