resolves #1072: do not expect uncaught exception to be an object