Fix in-memory cache hit misses when using processor directives.

Fixes the following issue:
https://github.com/sstephenson/sprockets/issues/432

This is my best stab at it. Apologies in advance for not adding a test, I seriously couldn't figure out the best way to test this. All current tests pass.

Thanks.