Fix for GRAAL-28 : delete of TaskReference can delete a use relationship by mistake