Bugfix: Actually increment template_nonce when we use it