Do not crash when cloning components without attributes.