Bug 933192 - [Settings] can join hidden wifi network without ssid name r=ejchen

Bug 933192 - [Settings] can join hidden wifi network without ssid name r=ejchen
we can check 
```
if (!ssid) {
  return false;
}
```
out here, so we don't need to repeat it in every option.