rails 4 compatibility

`config.assets.enabled` is gone in rails 4. That means the conditional sprockets engine registration will never get called, because `config.assets.enabled` is always `nil` (by default). This PR replaces this check with `Sprockets` existence in rails 4.