Discovered while testing export/import where test case involved a published dataset with no files. If using a local file store, a published dataset with no files fails to export, returns a json file with error. If add files then publish, works as expected.