Added protection to t_yield()