Assets pipeline in ckfinder. Fix for rails 4

`config.assets.enabled` was removed from Rails since `Rails 4` and this option returns nil now. 
I added another condition to be able to use ckfinder in `Rails 4`.