Fix ->TemplateObj to be back-compatible

Returning undef is only appropriate if we cannot determine the
TemplateObj, which is only the case if we have stored neither
TemplateObj nor Template.  In most cases, TemplateObj was stored on the
object when ->LoadAction was called.