ENG-4338: Fix crash on plan eviction in EE.