Correctly set the textarea value in the template (see #6995)