Handle servers that do not have precompiled assets.

If there are no precompiled assets, `Rails.application.config.assets`
will not have a `#digests`. Use a `#try` to catch it, and return an
empty array instead.