Deal with the case where `language` is an array

Users shouldn't do this, since we only use one language in a build,
but some users have it, and it was a regression to not deal with this.