Entanglement dynamics in Heisenberg spin chains coupled to a dissipative environment at finite temperature