A statement in an insurance policy which imports that it is intended to do or not to do a thing which materially affects the risk is a warranty that the act or omission will take place.