hw/intc/i8259: Refactor pic_read_irq() to avoid uninitialized variable