Prevent importing shades multiple times due to operation of elementsByTagName and repeated tag names at varying levels in sdd

[#60827566]