Stage 31 is not a glitch. If it was a glitch, then it wouldn't have a name at all.
The level is undefined. What else is undefined? Division by 0. You can not divide a number by 0. Therefore, stage 31 (Undefined) can not be completed.
That is my theory.