If the loss is caused by the act of a third person, the insurer who pays compensation is subrogated, up to the amount paid by him, to the rights of the assured and of the beneficiary against such third person.
If the insurer has paid part only of the compensation, he cannot exercise his right to the prejudice of the right of the assured or of the beneficiary to claim from the third person for the remainder of the loss.