Fix Set#replace to not clear self @hash if Error is raised