Do not search past 512 characters of a document for an HTML indicator.

This is to avoid wasting time dealing with a huge (non-HTML) XML
document.
Trivial code reduction.