Oh, the evil raisins
I had many an argument with DH about the effect on teeth so I now hide them from DH and DS !
I don't know what I would have done. I do try to stick to my principles but I have been known to bent the rules according to the circumstances.
In this case, I would say try not to feel bad, especially as JT was having a tantrum and that is always testing on all concerned. Your LO must have been very tired and that would have accounted for the meltdown. Personally, I would have put my concerns about food aside and rushed him to bed and crossed my fingers that he would not wake up hungry at night.