check that the associated record exists before saving
Merge remote-tracking branch 'origin/patch-check-record-exists' into develop