Gracefully handle empty metadata documents

Some mlses are sending us empty documents
Merge pull request #28 from estately/handle_empty_metadata_document

Gracefully handle empty metadata documents