Fix problem with synctree drag to root

If an item is dragged to root $target=0 and model->getRow($target)
throws error. So this checks for this value.
Merge pull request #229 from Ben-Ho/3.7-synctree-parent

Fix problem with synctree drag to root