Bug 922558: catch attempts to read selection from incompatible elements