when rendering error we checked if headers have already been sent or not

git-svn-id: file:///var/www/svn/anahita/anahita/branches/search@17044 a933e228-e664-4d3f-8241-49479697c698