Bad weather pushed Travelers to a loss in the second quarter, but the stock was still higher on Thursday.