Fix interpolated selector match regression

Fixes #2216 (regression introduced with #1831, see also comments in #1877).