make DocumentNotFound simpler to initialize

[fixes #3198]