Fix bug #10194 - SetElementValue(nonExistentElementName, null) caused NRE.