Out of bound exception: when closing the last  tab there is no tab to
the left.