Fix propagation of processor state to init_mod (fixes bug with emscripten)