Fix an incorrect assertion that getCause() won't return null.