Fix a problem that the PrivateConfig will become empty element, e.g. "<PrivateConfig/>", which would fail the extension's validation/deserialization.