Thanks. I did a getTemplateVariables(), and displayed a warning if the variable did not exists in the doc.
(By the way: it was "on purpose" that I made a bad template, no worry. I wondered how your code perform if somebody changed the template. For example, if I let users update the template as needed. But thanks for the debugging proposal!)
Best regards,