@9055394
I think the issue is that you either had a glory(1) or games necklace(1), they had no charges all together and you didn't have a Varrock teleport to restock with.
The only item required to run this script is a Varrock teleport (if you are using restocking).
I just ran the exact same set up that you had at it worked fine so I'm pretty sure there was no Varrock teleport to get to the GE with.
So it's not actually trying to restock the salt at that time it was actually trying to restock the glory because you either didn't have one, or the charge was (1) or out.