check that the associated record exists before saving
Merge pull request #10 from Indemnity83/patch-check-record-exists

check that the associated record exists before saving