Do not assert on broken document

Bug #89422
1 file changed