The provisions of this section shall not apply to any infant whose parents object thereto on the grounds that such tests and treatment conflict with their religious tenets and practices.