merge fix for LOG4NET-405 from trunk

git-svn-id: https://svn.apache.org/repos/asf/logging/log4net/branches/log4net-1.2.x@1542466 13f79535-47bb-0310-9956-ffa450edef68