Added condition to only make the slug if the slug attribute is null