Fixed entity export when a file has no content.