#dup with unslugged model causes undefined method error
#dup with unslugged model causes undefined method error

In lib/friendly_id/base.rb:252:

```
    def dup
      super.tap { |duplicate| duplicate.slug = nil }
    end
```

However, suppose we have a User with just `friendly_id :login` - no extra slug. #slug= is not defined, and therefore some_user.dup fails.

My patch just makes the dup check if slug= is defined before using it.
Pathgather/friendly_id,tekin/friendly_id,sideci-sample/sideci-sample-friendly_id,joshsoftware/friendly_id,kangkyu/friendly_id,ThanhKhoaIT/friendly_id,MAubreyK/friendly_id,morsedigital/friendly_id,ashagnanasekar/friendly_id,onursarikaya/friendly_id,norman/friendly_id,MatthewRDodds/friendly_id