Gracefully handle empty metadata documents

Some mlses are sending us empty documents, this correctly handles those documents.