HUD: fixed a bug where removing a device with no representation would cause self-destruction