fix for missing snippet in resource_read

taken from fix in ckan in [#354]