Fix error when we want to render our own error page.