Small bits of refactoring
When error while parsing xref, fetch full stream, then indexObjects()
Fix bug with resolving error promise twice
Make XRef.indexObjects() code path work for full file addon
For viewer, fetch the full file if range requests not supported