Fixed a bug with exceptions thrown when parsing YAML configuration headers.

--HG--
extra : rebase_source : c7fc2af4e0b8469102414c2378239c7013154e22