neworm: handle cases when getting string if it was not set
(equal to null), do not return empty string as attribute value