#168 Don't throw an exception if the template is undefined
#168 Rebuild