Changed `extern crate foo as bar;` error message

Closes #17709