Fix an error with writing the entire inner text of a subnode to the log.