Fix matching static bundles using apply_to.

The code for matching apply_to in static bundles for extensions was
checking the wrong dictionary. It was checking the main bundles
dictionary and not the particular bundle we were operating on.

This is just a one-character change.