Fail when template id is unknown.

TemplateSelector and BuilderFactory throws an exception
if an unknown templateID is given to them.
Merge pull request #491 from isartcanyameres/feature/fail-when-templateid-is-unknown

Fail when template id is unknown.