So I tried to go for the code fix before actually playing through this game(besides the one affected scene), but if you replace your game/script.rpy with this file then you should be free from the dreaded infinite loop
Really though, there aren't any more kitchen events following this one (since this one only triggers after day 15), so if you just avoid the kitchen afterwards it should have the same effect. (Again - have not played all the way through so not sure if any other variables are not being set that would need to be fixed as well; this only fixes the infinite loop)