[PATCH v2 22/35] qemuConnectDomainQemuMonitorEventRegister: Add top-level flag validation