Whenever a right to rescind a contract of insurance is given to the insurer by any provision of this part such right may be exercised at any time previous to the commencement of an action on the contract. The rescission shall apply to all insureds under the contract, including additional insureds, unless the contract provides otherwise.