Fix potential problems with minification.

Without stringifying the injected provider, we'd lose it in the minification process.