Fixes problem with replacing has_one association record with itself