[BUGFIX beta] Handle ES6 transpiler errors.
Merge pull request #4410 from rjackson/handle-compiler-errors

[BUGFIX beta] Handle ES6 transpiler errors.