What items were looted in the log you're having an issue with?
Looking at that section of the code, name would only be nil if for some reason the itemLink didn't return a name (the 1st return value of the GetItemInfo function).
If you got to line 181 presumably the item is a token. I haven't had a chance to loot/see a token looted recently but hopefully I'll see some looted tonight. As much information as you can provide would be helpful in narrowing down the problem. I'm going to make one change to make sure pt is loaded correctly but if that doesn't fix it i'll need to look at it more in depth.