I found the limit of your game: wave 27!
I had the same thing happen on wave 26 instead. I'm not sure how that's possible, though.