Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=58086 Merged revision 1688563 from tomcat/trunk: Fixed wrong if clause that causes FileNotFoundException. Based on a patch provided by Lukasz Jader.