NXP-10969: fix potential NPE when displaying history if live document was deleted