gridfs: loss of the optional field `metadata`