issue #19921: protect document box from corrupt data

Does not address the fact that a query like 
select * from xm.account_contact
where id = 268;
on maxhammer toytruck shows a record with no contact.