An insurer is entitled to payment of the premium as soon as the thing insured is exposed to the peril insured against.