(FR #1845) Assert no unconsumed tokens while rendering thank-yous

This improves the check by intercepting content before it's written to
disk, making it much harder to accidentally commit bad templates.

Deployment:
* drush rr

Change-Id: Ic269f66a8623e63411c7dc612762c2018f8f6c65