Threshold extinction in food webs