Fixed bug with whitespace detection in child nodes.