fix for CKAN 1.8 bug with 500 errors when web crawlers request datasets with text/plain headers