Handle documents without collections

Many document responses contain no sourceResource.collection field
leading to a crash because a every Document instance tries to
instantiate a Collection. Document#create_collection can just return nil
when this field is not present.
Merge branch 'null-collection' into smr