Unfortunately I didn't incorporate cakes into the food system as when you consume a cake it's name changes which makes it particularly awkward to account for. However the script is designed such that it should misclick very very rarely (i've still not misclicked a chest while running it and i've used the script alot!). Also the chest does very little damage to you from a single click. For this reason, food will pretty much never be used (it's there simply as a fail safe) so I would recommend just to grab a few pieces of bread or a few cups of tea or anything similar which is supported in the gui and using that. It hopefully shouldn't be too hard to aquire!
Sorry about that, I will consider adding support for cakes in the future.
~apa