Agreements deviating from sections 19 to 28 (4), and section 31 (1) sentence 2, to the detriment of the policyholder are not permitted. Agreement may however be reached to the effect that any notification to which the policyholder is obliged in accordance with the provisions of the present division must be made in writing.