Fix a bug introduced in v1.46.0rc1 where URL previews of some XML documents would fail.