ensure id string doesn't get set to the empty string (bug # 56271)