Fix for issue #69: Crash when dragging a tab close button