Protect ourselves from missing gateways on subnets

Avoid throwing errors and entering an infinite update loop when the 
gateway_ip for a subnet is not set.

Change-Id: I983a24c7511d594639054320953080130047bd30