On the heat flow for the two-dimensional Gelfand equation