nunaliit2-js: Fix issue where related documents are not updated properly
when a new related document is created.