dont barf when loading documents with invalid metadata