Fix for http://jira.qos.ch/browse/LOGBACK-463.