Editor: fix hidden entities getting selected when clicked. Fix #460.