Using \let to set a macro equal to a nonexistent one leads to processing error
Using \let\x=\undefined where \undefined is an undefined macro will produce a math processing error. This needs to be fixed in newcommand.js, and probably begingroup.js as well.