Avoid crash when layout views with no pageViews