scripts: policy-device-profile: clear tables when devices removed
When device ids are invalidated, clear all local tables about them, because the id may be reused by different object, or the same object reappearing.
Fixes #234 (closed)
Edited by P V