NXP-14047: fall back on targetDocumentId to avoid a crash when processing a task created before 5.7