Fix #26 by running assertion when we're aren't testing for a body.

We're creating Nokogiri documents from HTML fragments, which means Nokogiri automatically
adds a body element which is unexpected.