Improve error output if calling emscripten methods with invalid 'this'