wipe out emscripten.py output when it fails, so the error does not cascade weirdly; fixes #2368