[monodoc] Improved error handling in DocCacheHelper to avoid throwing an unnecessary NRE.
[monodoc] Removed unnecessary loading of type XML document.
[mdoc] Fixed bugs processing type XMLs