PCI/AER: Use list_first_entry_or_null() to simplify code