NXP-13244: avoid resetting tab cache when ending task - reset only when workflow ended/cancelled