Bug fix: Prevent crash if a page does not contain a DOCTYPE declaration.