Fix assert in WebGL replay