Energy Density Constancy for Harmonic Maps under Nonnegative Ricci and Nonpositive Sectional Curvature