write: Avoid NULL dereference when remenbering position of 'elst'.