#1066: Fixed assertion triggered when using Ctrl+H to hide an item while the mouse was hovering over it.