Fix NPE observed in testing logs

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


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