Thermal control of the topological edge flow in nonlinear photonic lattices