Null check on BundleDocument
Merge pull request #1640 from iamkrillin/master

Null check on BundleDocument