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