create an unhandled rejection on js parsing fail

so that an error appears in the session pane for #674
just a band-aid, the R side still needs to notice the error