Fixes Issue 9265 - assertNotThrown should emit msg from thrown exception if available.