Fixed issue 147 (XMLDocument::LoadFile() may crash on non-regular file)

Fixing crash. The crash occured because the indicated file size was ~0 that resulted in a allocation failure. The fix doesn't check the file size though, but instead makes sure that the file can be read without errors.