Prevent using g_return_val_if_fail to check error
Workaround for archive_write_set_format

archive_write_set_format does not recognize all available format codes, so
we have to manually maps format codes to functions. This problem is found in
libarchive 3.1.2 source code, libarchive/archive_write_set_format.c.