Hi, I apologize but I'm not going to be able to fix anything. I've lost interest in the game since 0.17.60 and haven't even had the desire to follow the patch notes since .62. I also got a new computer a couple months ago and have not installed the game or transferred any Factorio related content to it, so everything following is from memory.
This mod does not touch wagons in any way shape or form. It creates a new locomotive entity, potentially swaps the graphics between them (user setting), creates graphicless storage tanks for use with the new locomotive entities, and creates item representatives of valid liquid fuels. If it's the storage tank that's actually causing the trip up, this can't and won't be fixed. The storage tanks should not become visible, thus the lack of graphics on them.
Someone could monitor the Infinity Mode code with log statements to see what entity is actually trying to be loaded at the time this nil "t" is occurring, but ultimately this could be solved by Raiguard by putting in a check to see whether or not "t" has an actual value assigned or not ("if t then", or "if not t then", depending on how they want to tackle it).