fix parser when V8 mapscript disabled (#4827)