Remove an errornous if-clause from TbApi.php