issue #20154: Fix so adding new document works again.