convertDomElementToArray should handle zero values