Fix contest deletion (npe).