dump: Fix g_array_unref(NULL) in dump-guest-memory