Issue 7936 by sgl: Better handling of ting_id conversion