Avoid using ExceptionUtils.getRootCause as it can return null