There are a couple of edge cases in `as_template_fields` and  `apply_fields` that can raise a TankError - I generally try to play safe when doing anything with templates if there is a non-critical path out of a problem.