[PATCH v2] virQEMUDriverGetDomainCapabilities: Validate arguments