MMM-Domoticz Cannot read property '0' of undefined