Fix for Redmine 1641

Code for the error page.