librustc: Don't ICE with struct exprs where the name is not a valid struct.

Fixes #16058.