xen-detect: fix potential logic error