I did nothing, I went up to the cupcake, it hit me, and I got the error. I even let the elf take the cupcake, progressed to the next area, then fought another cupcake, got hit, and got the same error.