If an IoT doesn't have a DB recorded, the IoT client can't have an url. So the Websocket can't parse a empty string and return a traceback. With this commit we check if there are a DB else iot_client is None closes odoo/odoo#150089 Signed-off-by: Yaroslav Soroko (yaso) <yaso@odoo.com>