I don't think this is necessary;  AFAIK, using return $this->renderText() is sufficient to prevent trying to load a template page.