Nothing contained in this chapter shall render void a written agreement respecting the making or maintenance of partition fences.