Metadata generation bug fix

Fixes MODS bug
https://code.google.com/p/daisy-pipeline/issues/detail?id=328