handle Esprima parse errors more gracefully (#625)