Bug fix: file.delete() and file.load() break on empty entity.