Support config.assets.initialize_on_precompile

I have noticed that `config.assets.initialize_on_precompile = false` does not work on Rails 4.0.0.beta1. I've tried to fix it.

I'm not sure if my patch fixes the problem in appropriate way, but it seems to be worked on my project.