fixing bug that raises error when the error page is rendered
Merge pull request #322 from grischa/develop

fixing bug that raises error when the error page is rendered