Raise an error if template file does not exist

Change-Id: I755c5a3deb953f1a9bb4e06564e03be5992e74c2
Closes-bug: #1388406
Merge "Raise an error if template file does not exist"