Added error handling when the expected data is not on the tab