[fixed] Bad HTML with a missing <head> will cause parsing to fail