style: Short-circuit the selector matching process if the map is empty.

125% win on selector matching (!)

r? @SimonSapin