Fix exception when username is not known.