qcow2: Fix error handling in qcow_save_vmstate