Changes 'documentload' event behavior.

... to wait until entire PDF document data is loaded

In support of https://bugzilla.mozilla.org/show_bug.cgi?id=995431