Fix #529: Placing nodes sometimes replaces the node you are trying to place it on.