Fix incidental hidding of the moved element.

If mouseup is followed by mousedown, without mousemove,
and there is a custom helper,
the moved element was left hidden after mouseup.