Fix error when dragging tree node over empty area