NXP-14897: Don't collect null documents in DocumentModelCollector to avoid a NPE when writing the response