The Boston-based insurer was hit with $1 billion in catastrophe losses in the first quarter, but they were more than offset by its investment gains.