Check if tabCount > 0 before attempting tabsContainer.getChildAt(position) when scrolling to child.