Improve Selectable performance when selecting with invisible elements. Fixes #3885