Fixed emscripten build error.
Merge pull request #3340 from azmeuk/emscripten-fix

Fixed emscripten build error.