Fix TemplatePDF to recover from missing template page elements in the array.
Fix TemplatePDF to recover from missing template page elements in the array.

Jazzee/Jazzee,Jazzee/Jazzee,Jazzee/Jazzee,Jazzee/Jazzee,Jazzee/Jazzee,Jazzee/Jazzee