networkd: avoid segfault