Add #record attribute to RecordNotFound and RecordDestroyed exceptions.

This allows these exceptions to be handled generically in conjunction with RecordInvalid.
Merge pull request #17674 from recursive-madman/activerecord-error-improvement

Add #record attribute to RecordNotFound and RecordDestroyed exceptions.