Handle "empty method" syntax error recovery for js_of_ocaml.