Use the same fix as for the «Object DOMDocument should be created» bug.
It has been fixed in the core: https://github.com/magento/magento2/commit/ddb6c1c6a8796134e940f0a2b3dd1f32e7f6cdf0