An insurer may not deny a claim if a risk, hazard, or contingency insured against is the dominant cause of a loss and the denial occurs because an excluded risk, hazard, or contingency is also in a chain of causes but operates on a secondary basis.