Check if the option metadata exists before processing it
Merge pull request #40 from daisy-consortium/issue_378