Transversal heteroclinic points and Cherry's example of a nonintegrable Hamiltonian system