phy: core: make NULL a valid phy reference if !CONFIG_GENERIC_PHY