Fix some bugs in learning path item drag-n-drop - ref #6622