Correctly handle HTML with no <body> tags.