Fixed missing head

This fixes a parsing issue when some bad HTML is missing <head> around the <meta>.