Any insurance policy, rider or endorsement purchased to insure against any risk which may arise as a result of the application of this chapter, and which contains any condition or provisions not in compliance with the terms of this chapter, shall not be rendered invalid, but shall be construed and applied in accordance with the intention of this chapter.