Rescuing from device loop errors

When running on my network, I received Argument Errors when converting the device to json with location.  The rescue retry allows it to bypass these hiccups in order to find the right Wemo device.  Just in case, I also added a rescue to the http_post in the event it can't connect to the device.