Made loading of site templates more robust by handling errors in site template xml.