Fix default metadata value handling on edit form (Document and Node)

Default value was not used when editing a document or a node.