Fixes runtime error after sample that has explicit protocol assignment is deleted