Handle attempts to clear selections that have already been cleared
Merge branch 'master' into refdb