WEB-14564: (Jade) fix CCE if doneBefore with delegateMarker is called
(cherry picked from commit 81ba8a5 r=Alexander Zolotov)