Only slugify the name if the slug is empty.