Save parse errors in TemplateResource for later

If there was a parse error re-raise it in the validate.

Change-Id: I25759c4f03fe8f9353c03f8fd4d9bb099ea1b478
Close-bug: #1232127
Merge "Save parse errors in TemplateResource for later"