fix crash when gw_mac is null

gw_mac is not set when gw_address is used in the configuration. This causes a crash when gw_mac is accessed for the splash site