Clear selection if unselectable object is clicked - Fixes issue #976