Validate properties against the schema in validate_template

Change-Id: I81457d8d363226b90b2a878ec2c93f88b376dc83
Fixes: bug #1154722
Merge "Validate properties against the schema in validate_template"