Add error checking to the calls to perfect.ParseTemplates