Let 404 page can use "render_with_templates?" method
Merge pull request #2313 from darkbaby123/master

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