common: fix on get of default network interface without a gateway