VM stops if RuntimeException is not handled in a thread.

An error is thrown in context.js:
 TypeError: caller is undefined
Merge pull request #501 from PinZhang/pzhang/runtime-exception-in-thread

VM stops if RuntimeException is not handled in a thread.