network: fix segfault when invalid eth device