Create a <body> node if one is not present, in case we're running in a test harness that injects <body>.