Only check if Rails responds to assets.

- Rails.application.assets can apparently be nil at boot time (Rails
  3.2.14). We still want to use asset pipeline in this case.