avoid exception when clicking on the Tree itself rather than a row in the tree, fixes #16839 !strict