Add an uncaught exception handler in 844-exception.

The test requires an exception to be returned from the top of the call
stack. To not depend on the Java naming of which thread is throwing that
exception, add an uncaught exception handler.

Test: 844-exception
Change-Id: I14c26e9daf2065ee35a3ef49c293c75742b7220e
3 files changed