fix editing slug

if click on "edit slug" and cancel prompt - the slug will be empty;