KVM: fix error handling for out of range irq