Preventing NPE if tabsContainer is empty