Fail safe error fix

For when the doctype doesn’t have multiple values.

I used your package to get the doctype from a html document, and since it’s just `<!doctype html>`  now, the script crashed.

I know this is supposed to be used for .xml files but it works great for .html files as well :+1: