protect against bad documents
Merge pull request #3 from Connexions/bad-documents

protect against bad documents