Check metadata before adding to archive

Fixes "You did not supply a value for binding 9" error when adding to archive.