Fixed bug in which the last device had to be one with a values array or pilight would crash