Set deviceObject.devices to empty array in case of networking error