Continental Casualty Co. doesn't have to cover Roche Brothers Supermarkets Inc.'s costs to remove snow from the roofs of several Massachusetts stores following record-breaking winter storms in 2015, a state judge ruled Friday, holding that the grocery chain's policy doesn't apply to preventative measures taken to avoid property damage.