On the exactness of Lasserre's relaxation for polynomial optimization with equality constraints