fixing errors when trying to process empty ting references