Riemann's theorem on removable singularities