Fix a bug in `stack`'s DimensionMismatch error message (#54033)
`stack` does not require that the inner iterator defines `axes`, but the
code to assemble an error message assumed this.
Found here:
https://discourse.julialang.org/t/reduce-hcat-is-type-unstable/112800/3