Don't register a new tree id event when null

fixes #1648 on github
Merge pull request #1696 from steventlamb/bug/1648_move_tree_add_tree_conflict

Bug/1648 move tree add tree conflict