fix error where throws dom exception if removing empty string
1.2.5