Clear saved data before re-saving and safeguard code for empty list name