Fixed bug where the exception's stacktrace was null.