1051215: prevent an ArrayIndexOutOfBoundsException

While processing the exceptions in the ExceptionMapper, if an exception has no
stack trace, an ArrayIndexOutOfBoundsException was thrown losing the exception
being handled.