issue #1 don't return document that cannot be deserialized
Merge pull request #2 from astoltz/issue-1

issue #1 don't return document that cannot be deserialized