This should not be necessary. With the comments on `document.py` addressed so that `write_pdf` does not have a `url_fetcher` argument, `url_fetcher` will never be `None` here.