Omit empty values in Document#metadata

Also add specs for the method.
Merge pull request #18 from alphagov/fix-empty-metadata

Fix empty metadata