NXP-14805: prevent sending events on detached task document