I'm not sure where this helper is used but this may be wrong here because it ignores direct previews. Have a look at https://github.com/okfn/ckan/blob/master/ckan/lib/helpers.py#L1477 to see where the `datapreview.can_be_previewed` is used.