I searched for cases where methods are accessed that are not in Twig_TemplateInterface but could not find them. Can you show me where?
Anyway, this interface is deprecated but until it's removed we need to support it. And since loadTemplate returns a Twig_TemplateInterface resolveTemplate must handle it. Otherwise we can get a fatal error.