Fix assert in WebGL replay

Both the assert condition and message were wrong! Shame on me.