Strip restore attribute on restore

This simplifies bookkeeping for the partial rerender case.