The topology of the set of singularities for an integrable Hamiltonian system