Fix #27
Add test for #27

Unfortunately, this test was green even before the fix for the issue;
the fix just removes an exception. (I might add a “fail-fast” option to
the formatter or something like that, to make handleException fail
instead of just printing the stacktrace and then continuing.)