[libvirt] [PATCH v4] storage: Check for invalid storage mode before opening