Don't fire the load event immediately

This patch teaches the HTMLDocumentParser that the background parser might be
processing data, which correctly delays the load event until we're actually
done parsing.