Fixes ZEN-5505 (reviewed by dgarcia): Need to invalidate links to deleted devices just as it is done for the archived events. Refs: ZEN-9952, ZEN-9879