Fix trying to save zconfig_t to non-existant path

Trying to save an instance of `zconfig_t` to a non-existant path will currently segfault.