Fixed exception if no tabs available on page.