Allow automatic undeleting of manually deleted devices

http://ralph.allegrogroup.com/buildbot/builders/unittest-ralph-deshipu/builds/193