A weighted Poincaré inequality and removable singularities for harmonic maps