Hardened against XML parsing failures in metadata reading