AR .persisted? throws SystemStackError for an unsaved model with a
custom primary_key that didn't save due to validation error
refactor fix for #14393 and add CHANGELOG
refactor fix for #14393
Merge branch 'persisted_exception' of github.com:chrisfinne/rails into persisted_exception