[settings] Fix broken assertion in fetch_string_setting_copy()