Null check on BundleDocument

Added some empty checks to BundleDocument.FromFile() this fixed a visual studio crash issue if the bundle file was empty