It is because the events from the inner grid propagate to the tree (that is a sort of grid too) but the tree cannot identify what was clicked hence the error.
I don't think there's any easy way prevent this behavior without going deep into the grid code and override some chunks.
You might consider to re-design your UI so that it doesn't involve grid-in-grid, or grid-in-tree.