Fixed crash when deleting blank tab