xmlTools: 0.8f nows checks for empty strings and null string to avoid problems like the one fixed on 0.8e