Bugfix Invalid argument supplied for foreach()

when no config values to save
Fix #57