fix mongo check in getDevices query
Merge branch 'master' of github.com:skynetim/skynet