Set name to appid, if there is no name