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
Merge pull request #36 from KeaneWang/patch-2

fix crash when gw_mac is null