Fix WiFi stuck in static ip mode

WiFi gets stuck in static ip mode indefinitely after calling config()
Merge pull request #525 from energia/issue_525

config() to set Static IP Address fails without error; Does not revert to DHCP when removed.