Update the error count regardless of how the error flag was set
Ensure that an request can only contribute to the error count once

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1600579 13f79535-47bb-0310-9956-ffa450edef68