Added check in CustomTree itemClick, itemDoubleClick and itemContextClick to verify that the row still exists in the dataset.