Add a blank element to the end of the lspci output so the last device is included in the evaluation of devices. There is likely a better way to fix this but this one was the quick and dirty way.