correct error when devices are not present
Merge pull request #1 from sailoog/master

correct error when devices are not present