Disable actions on selection changes

@dinhviethoa 

Fixes #2460 
why does setNodeExpanded get called with nodeUid = null?