Fix crash when unable to connect to Photon Wi-Fi.
Fix crash when unable to connect to Photon Wi-Fi.

kennethlimcp/particle-cli,spark/particle-cli,spark/particle-cli,spark/particle-cli,kennethlimcp/particle-cli,kennethlimcp/particle-cli,spark/particle-cli,kennethlimcp/particle-cli,kennethlimcp/particle-cli,kennethlimcp/particle-cli,spark/particle-cli,spark/particle-cli