Fix mapping removal if device disappeared but node still exists.