Prevent crash when no content in infinite viewpager adapter