fixes "undefined method `id' for nil:NilClass: searching model "dmsf_files""

seems sometimes dmsf_file.project is nil