DNN-6287: Optimization for checking if doctype config exists

optimization in TabInfo.CheckIfDoctypeConfigExists to avoid loading the doctype XML file from disk on each page load