Fix for incorrect parsing of context attributes as in emscripten issue #2518