Fix undefined index for file resources without datastreams
Implement removal of linked data fields

Fixes EDOZWO-210