Removes unneeded IllegalStateException for PullToRefresh.