Just stop the script if you are going to move it and restart it after... , the script had still an active plant sequence running when you moved it.
This scenario can only happen when you ineterfere by hand
Gems and runes are pretty good to keep, you can always use a gem bag to extend trips.
For meat and blood pints and all other junk it will be dropped already
Use a filter, filter only the object at that certain position with a specific name for example
RS2Object tree = getObjects().closest(object -> object.getName().equals("Tree") && object.getPosition().equals(new Position(3305, 3000, 0)));