(d) The provisions of this section shall do not apply to any parent, guardian or custodian or other person who, without malice, fails or refuses, or allows another person to, without malice, fail or refuse, to supply a child under the care, custody or control of such parent, guardian or custodian with necessary medical care, when such medical care conflicts with the tenets and practices of a recognized religious denomination or order of which such parent, guardian or custodian is an adherent or member. The provisions of this section shall do not apply to any health care provider who fails or refuses, or allows another person to fail or refuse, to supply a child with necessary medical care when such medical care conflicts with the tenets and practices of a recognized religious denomination or order of which the parent, guardian or custodian of the child is an adherent or member, or where such failure or refusal is pursuant to a properly executed do not resuscitate form.