fix restoration of student answers in input boxes

The HTML for the question was being created twice.