handle case of nil digests

this happens when digests are off:
  config.assets.digest == false

thanks for the suggestion @jezstephens