added special case all-zeros templateID when there is no template data