Do not clear settings on new records

Hello again! :)

I have just realized that some peculiar scenarios may call after_destroy callback for new records. It will raise an error.

Merge the fix please