Testing locally, we see that when a course does not enable a language, the language selector at the top right is still rendered. This leads to cases where selecting a language with no sublanguages enabled for the course results in the following empty dropdwon:
