deleted devices - searching fix

http://ralph.allegrogroup.com/buildbot/builders/unittest-ralph-andrzej-jankowski/builds/33