Fail if the provided template name is invalid

If the user provides an invalid template name, we don't want to
continue. Instead of proceeding and leaving artifacts, we should fail
early.