drivers: phy: Handle gracefully NULL pointers