Yes you'll be fine. I put wine in our gravy and give it to dd all the time. Simmer or boil for a while and all alcohol will be gone.
I can understand that a nursery would not want to give out alcoholic cake but that's to do with covering themselves legally etc. Also this is less likely to have been cooked off.
They will also let babies scream while they heat up their feeds slowly in hot water whereas at home you'd pop it in the microwave. Different rules.