GRAILS-11421 - prettyPrint stack trace throws exception if stackTrace is empty

See https://jira.grails.org/browse/GRAILS-11421