net: avoid eth_unregister() call when function is unavailable