I have also had that problem, putting a tender that has not been serviced, behind a loco. The brittle wiring may look ok, but after a few curves the insulation breaks off and you have a short. Also had that happen with some cabooses. An quicker alternative to replacing the wire is to disconnect it at the roller and add a sleeve to protect where it goes through the hole in the frame, then re-connect.