Fix codename generation when there is no user