bug 3.5.7: Search misses some elements

I’ve come across a couple of elements that search seems to ignore.
Reported as bug 14575.