Hotfix for selfClosingTags when set to null.