Check that the call to newTemplates() returns a valid template instance.
In case of an xslt parse error, it will return null and we should stop the
deployment and raise an exception as the route will not be setup properly.