net: phy: genphy_10g_driver: Avoid NULL pointer dereference