Fixed a bug if the <head> isn't in the first 1kb.

This fixes a bug if the <head> tag doesn't appear in the first 1kb of the fetched markup.  Without this an exception is thrown and the subsequent call to grab 10kb of the document is never reached.