discover: pxe: Avoid dereferencing null pointer