Only set empty slug when not set

I introduced a bug in #346 which always generates a new slug based on "uses", even when the slug is locked. Sorry for that, fixed with this.