So what generally happens here is that the restaurant staples the paper bags shut before handing it to the delivery service. Seems like a simple solution to me -- though honestly this problem shouldn't exist in the first place, but people will be people.