Uniformization of the density in reacting magnetohydrodynamic flows