Add an InvalidTemplateVersion exception

Change-Id: I9dcc9a2d1ee611d0b8d6554c238784ea98a77930
Merge "Add an InvalidTemplateVersion exception"