A change to the render output filename made in the render-init hook would
not be picked up by by the copy. As a result, placeholders were touched
using the old name, whereas the rendered images would be saved with the
new filename.
This commit fixes T66555.