When dissociating deleted records from a has_many association check the child exists before saving it.