Fix possible NRE caused by null XmlResolver settings.