Fix issue - 404 page can not use "render_with_templates?" method

Because "render_with_template?" is a protected method, when I use `self.respond_to? :render_with_templates?`, it returns false (which should return true I suppose). The code fixes this issue.