openwrt: avoid segfault by checking for interface existence