Very good catch!
Originally I used other filter in the second clause and forgotten to recheck the relevance of the first. https://github.com/hypothesis/h/commit/0293f08c9d937cd19070a081c5acafbb570b3c6f

Besided this, I'll move 7a023b3b47b626ab5a16cb3a95453e1f94f29351 and 5720358d5e63e46ec8d0274c2047abf31214d34d  to a separate (and short) PR.