discover/pxe-parser: Avoid potential null dereference